win32: Drop vestigial surface type hint field
authorMatthias Clasen <mclasen@redhat.com>
Fri, 14 Aug 2020 01:36:44 +0000 (21:36 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 14 Aug 2020 11:45:53 +0000 (07:45 -0400)
This wasn't used in any way.

gdk/win32/gdksurface-win32.c
gdk/win32/gdksurface-win32.h

index a559cb3271d0eaf9983c7a40cea1a314aac0ae8a..4078635148bd3e29dbc6c8d82404f19692761c65 100644 (file)
@@ -140,7 +140,6 @@ gdk_win32_surface_init (GdkWin32Surface *impl)
   impl->hicon_big = NULL;
   impl->hicon_small = NULL;
   impl->hint_flags = 0;
-  impl->type_hint = GDK_SURFACE_TYPE_HINT_NORMAL;
   impl->transient_owner = NULL;
   impl->transient_children = NULL;
   impl->num_transients = 0;
@@ -332,7 +331,7 @@ get_default_title (void)
  *   get its own class
  */
 static ATOM
-RegisterGdkClass (GdkSurfaceType wtype, GdkSurfaceTypeHint wtype_hint)
+RegisterGdkClass (GdkSurfaceType wtype)
 {
   static ATOM klassTOPLEVEL   = 0;
   static ATOM klassTEMP       = 0;
@@ -613,7 +612,7 @@ _gdk_win32_display_create_surface (GdkDisplay     *display,
    * under the mouse cursor, this will kill any DND.
    */
 
-  klass = RegisterGdkClass (surface_type, impl->type_hint);
+  klass = RegisterGdkClass (surface_type);
 
   wtitle = g_utf8_to_utf16 (title, -1, NULL, NULL, NULL);
 
index 1f54b7b070b660648a27be21a1bf149c97042683..603401f8560d883bb1736e01d9bbc034c69f0e60 100644 (file)
@@ -256,8 +256,6 @@ struct _GdkWin32Surface
    */
   GdkDrop             *drop;
 
-  GdkSurfaceTypeHint type_hint;
-
   GdkSurface *transient_owner;
   GSList    *transient_children;
   int        num_transients;